.class public Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field public a:Ljava/lang/String;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/LinearLayout;

.field private e:Landroid/widget/LinearLayout;

.field private f:Landroid/widget/LinearLayout;

.field private g:Ljava/lang/String;

.field private h:Lcom/waiqin365/lightapp/kehu/b/f;

.field private i:Landroid/os/Handler;

.field private j:Ljava/util/ArrayList;

.field private k:Ljava/lang/String;

.field private l:Landroid/widget/PopupWindow;

.field private m:Landroid/view/View;

.field private n:Landroid/widget/EditText;

.field private o:Landroid/widget/TextView;

.field private p:Landroid/widget/ImageView;

.field private q:Landroid/widget/Button;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->f:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->j:Ljava/util/ArrayList;

    return-object p1
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 5

    const-string/jumbo v0, ""

    :try_start_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->h:Lcom/waiqin365/lightapp/kehu/b/f;

    if-eqz v1, :cond_0

    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1}, Lorg/json/JSONArray;-><init>()V

    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V

    const-string/jumbo v3, "id"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->h:Lcom/waiqin365/lightapp/kehu/b/f;

    iget-object v4, v4, Lcom/waiqin365/lightapp/kehu/b/f;->a:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v3, "type"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->h:Lcom/waiqin365/lightapp/kehu/b/f;

    iget-object v4, v4, Lcom/waiqin365/lightapp/kehu/b/f;->d:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v1, v2}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    invoke-virtual {v1}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->h:Lcom/waiqin365/lightapp/kehu/b/f;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/f;->a:Ljava/lang/String;

    iput-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->k:Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    const-string/jumbo v1, ""

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->showProgressDialog(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/util/HashMap;

    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->a:Ljava/lang/String;

    const-string/jumbo v3, "flag"

    invoke-virtual {v2, v3, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v3, "ids"

    invoke-virtual {v2, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v0, "0"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, "returnReason"

    invoke-virtual {v2, v0, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1
    new-instance v0, Lcom/waiqin365/lightapp/kehu/a/a/a;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/kehu/a/a/a;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v1, Lcom/waiqin365/lightapp/kehu/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->i:Landroid/os/Handler;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/kehu/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/kehu/a/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/a/b;->start()V

    return-void

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->j:Ljava/util/ArrayList;

    return-object v0
.end method

.method private b()V
    .locals 2

    const v0, 0x7f0c01da

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->b:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0305

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->c:Landroid/widget/TextView;

    const v0, 0x7f0c0198

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->d:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0197

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->e:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->c:Landroid/widget/TextView;

    const v1, 0x7f0800ab

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0309

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c0195

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->f:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method private c()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/kehu/x;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/x;-><init>(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->i:Landroid/os/Handler;

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->k:Ljava/lang/String;

    return-object v0
.end method

.method private d()V
    .locals 4

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->showProgressDialog(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v2, "cmId"

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->g:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v2, Lcom/waiqin365/lightapp/kehu/a/a/p;

    invoke-direct {v2, v0, v1}, Lcom/waiqin365/lightapp/kehu/a/a/p;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v0, Lcom/waiqin365/lightapp/kehu/a/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->i:Landroid/os/Handler;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/kehu/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/kehu/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/b;->start()V

    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method private e()V
    .locals 5

    const/4 v4, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0301ae

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    const v0, 0x7f0c0084

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->o:Landroid/widget/TextView;

    const v0, 0x7f0c0920

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->n:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->o:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    const v3, 0x7f080042

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->n:Landroid/widget/EditText;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    const v3, 0x7f080321

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c091f

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->p:Landroid/widget/ImageView;

    const v0, 0x7f0c0921

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->q:Landroid/widget/Button;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->q:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->q:Landroid/widget/Button;

    const v2, 0x7f0805d3

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c091e

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->m:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->p:Landroid/widget/ImageView;

    new-instance v2, Lcom/waiqin365/lightapp/kehu/y;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/kehu/y;-><init>(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v0, Lcom/waiqin365/lightapp/kehu/z;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/z;-><init>(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)V

    invoke-virtual {v1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v0, Landroid/widget/PopupWindow;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v0, v1, v2, v3}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    const/16 v1, 0x10

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setSoftInputMode(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v4}, Landroid/widget/PopupWindow;->setInputMethodMode(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v4}, Landroid/widget/PopupWindow;->setFocusable(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v4}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->n:Landroid/widget/EditText;

    return-object v0
.end method

.method private f()V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->m:Landroid/view/View;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    const v1, 0x7f040005

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    new-instance v1, Landroid/os/Handler;

    invoke-direct {v1}, Landroid/os/Handler;-><init>()V

    new-instance v2, Lcom/waiqin365/lightapp/kehu/ab;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/kehu/ab;-><init>(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)V

    invoke-virtual {v0}, Landroid/view/animation/Animation;->getDuration()J

    move-result-wide v4

    invoke-virtual {v1, v2, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->m:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    goto :goto_0
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->f()V

    return-void
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->m:Landroid/view/View;

    return-object v0
.end method

.method static synthetic i(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)Landroid/widget/PopupWindow;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 8

    const/4 v3, 0x0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    const/16 v2, 0x50

    invoke-virtual {v1, v0, v2, v3, v3}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->m:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->mContext:Landroid/content/Context;

    const v1, 0x7f040004

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    new-instance v1, Landroid/os/Handler;

    invoke-direct {v1}, Landroid/os/Handler;-><init>()V

    new-instance v2, Lcom/waiqin365/lightapp/kehu/aa;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/kehu/aa;-><init>(Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;)V

    invoke-virtual {v0}, Landroid/view/animation/Animation;->getDuration()J

    move-result-wide v4

    const-wide/16 v6, 0x64

    add-long/2addr v4, v6

    invoke-virtual {v1, v2, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->m:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->clearAnimation()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->m:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->back()V

    goto :goto_0

    :sswitch_1
    const-string/jumbo v0, "1"

    const-string/jumbo v1, ""

    invoke-direct {p0, v0, v1}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :sswitch_2
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->a()V

    goto :goto_0

    :sswitch_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->n:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const v0, 0x7f080321

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->getString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_0
    const-string/jumbo v1, "0"

    invoke-direct {p0, v1, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c0197 -> :sswitch_2
        0x7f0c0198 -> :sswitch_1
        0x7f0c01da -> :sswitch_0
        0x7f0c0921 -> :sswitch_3
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030034

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "approvalInfo"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/f;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->h:Lcom/waiqin365/lightapp/kehu/b/f;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->h:Lcom/waiqin365/lightapp/kehu/b/f;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/f;->a:Ljava/lang/String;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->g:Ljava/lang/String;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->c()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->b()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->e()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->d()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;->l:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method
